<?php
namespace Weixin\Controller;
use Think\Controller;
class UserController extends BaseController{
    public function getuserinfo($openid){

        $access_token = $this->getaccess_token();
        $url ="https://api.weixin.qq.com/cgi-bin/user/info?access_token=$access_token&openid=$openid&lang=zh_CN";

        $info =$this->curl($url);
        return $info;
    }
}